@echo off
echo 正在部署云函数...

echo.
echo 1. 部署 vote 云函数...
cd cloudfunctions\vote
call npm install
call npm run deploy
cd ..\..

echo.
echo 2. 部署其他云函数...
cd cloudfunctions\login
call npm install
call npm run deploy
cd ..\..

cd cloudfunctions\getRankList
call npm install
call npm run deploy
cd ..\..

cd cloudfunctions\initDatabase
call npm install
call npm run deploy
cd ..\..

cd cloudfunctions\testDatabase
call npm install
call npm run deploy
cd ..\..

echo.
echo 云函数部署完成！
echo 请重新测试投票功能。
pause 